function updateClock ( ) {
	var currentTime = new Date ( );
	var currentTimeString = currentTime.toLocaleString();
	//document.getElementById("clock").nodeValue
	document.getElementById("clock").firstChild.nodeValue = currentTimeString;
}

function hideCenter(){
	document.getElementById('center').style.display="none";
}

function setContentHeight(){
	var content = document.getElementById('right');
	content.style.height = document.getElementById('footer').offsetTop - document.getElementById('navcontainer').offsetTop-20 -32+'px';
	return ;
}

function getHeight() {
	var myWidth = 0, myHeight = 0;
      
	var footerHeight = 0, endTopHeight = 0, contentTopHeight = 0, footerTopHeight = 0;
	
      
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myHeight = window.innerHeight;
		footerHeight = document.getElementById('footer').offsetHeight;
		contentTopHeight = document.getElementById('content').offsetTop;
		footerTopHeight = document.getElementById('footer').offsetTop;
	//endTopHeight  = document.getElementById('end').offsetTop;

            
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		//myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
		headerHeight = document.getElementById('header').clientHeight;
		navContainerHeight = document.getElementById('navcontainer').clientHeight;
		footerHeight = document.getElementById('footer').clientHeight;
            
            
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		//myWidth = document.body.clientWidth;
		//alert('IE4 compatibile' + document.getElementById('bdy').offsetTop);
		//headerHeight = document.getElementById('header').clientHeight;
		//navContainerHeight = document.getElementById('navcontainer').clientHeight;
		myHeight = document.body.clientHeight;
		footerHeight = document.getElementById('footer').clientHeight;
		contentTopHeight = document.getElementById('content').offsetTop;
		footerTopHeight = document.getElementById('footer').offsetTop;
		//endTopHeight  = document.getElementById('end').offsetTop;
		return document.getElementById('footer').offsetTop - document.getElementById('content').offsetTop;
           
	}
	
	var tmp =  footerHeight - footerTopHeight;  
	document.getElementById('content').style.height = myHeight - contentTopHeight- footerHeight - tmp +  'px' ;

}
